Skip to content

Implementation of validator for active viewport - #167

Open
moonyuet wants to merge 9 commits into
developfrom
bugfix/165-Validate-Render-Active-Viewport-Used
Open

Implementation of validator for active viewport#167
moonyuet wants to merge 9 commits into
developfrom
bugfix/165-Validate-Render-Active-Viewport-Used

Conversation

@moonyuet

@moonyuet moonyuet commented Sep 9, 2026

Copy link
Copy Markdown
Member

Changelog Description

This PR is to implement the validator to check whether the render setting is enabling the active viewport for rendering.
Fixes: #165

Additional review information

n/a

Testing notes:

  1. Create Render
  2. Publish
  3. If you lock your viewport through the render setting, it will error out
  4. You can repair it
  5. Publish successfully
  6. Your scene on farm should be rendering in the right camera

@moonyuet
moonyuet requested a review from LiborBatek September 9, 2026 09:47
@moonyuet moonyuet self-assigned this Sep 9, 2026
@moonyuet moonyuet added the type: bug Something isn't working label Sep 9, 2026
@moonyuet
moonyuet requested a review from BigRoy September 9, 2026 14:07

@BigRoy BigRoy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks ok, just cosmetic notes.

Comment thread client/ayon_max/plugins/publish/validate_render_acitve_viewport.py Outdated
Comment thread client/ayon_max/plugins/publish/validate_render_acitve_viewport.py Outdated
@moonyuet
moonyuet requested a review from BigRoy September 10, 2026 08:31
Comment thread client/ayon_max/plugins/publish/validate_render_active_viewport.py
@moonyuet
moonyuet requested a review from BigRoy September 10, 2026 10:29

@BigRoy BigRoy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely. Needs testing by @LiborBatek

Comment thread client/ayon_max/plugins/publish/validate_render_active_viewport.py Outdated
…t.py

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>

@LiborBatek LiborBatek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validator correctly kicks in but the Repair action does not work and didnt unset it (disabled the lock option)...

Leading to unability to pass the validation and publish....

Image

Comment thread client/ayon_max/plugins/publish/validate_render_active_viewport.py
@moonyuet

Copy link
Copy Markdown
Member Author

The validator correctly kicks in but the Repair action does not work and didnt unset it (disabled the lock option)...

Leading to unability to pass the validation and publish....

Image

Careless mistake. Should be fixed in d1cdfaf

@moonyuet
moonyuet requested a review from LiborBatek September 10, 2026 15:38

@LiborBatek LiborBatek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, still I cannot pass the validator as the Repair does not affect that lock button and keep it active still.

Seems like the latest commit didnt help sry.

Comment thread client/ayon_max/plugins/publish/validate_render_active_viewport.py
@moonyuet

moonyuet commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Hmm, still I cannot pass the validator as the Repair does not affect that lock button and keep it active still.

Seems like the latest commit didnt help sry.

The extra logic of updating the render dialog confuses 3dsmax in terms of setting up the toggle of the active viewport.
The removal of it ensures the repair action to set the active viewport to True
714a574

@moonyuet
moonyuet requested a review from LiborBatek September 11, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate Render Active Viewport Used

4 participants